find the Range of a trigonometric function